package com.wfuhui.modules.goods.dao;

import com.wfuhui.modules.goods.entity.GoodsEntity;
import com.wfuhui.modules.sys.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品
 * 
 * @author xiaotian
 * @email codemax@qq.com
 * @date 07-14 13:43:12
 */
@Mapper
public interface GoodsDao extends BaseDao<GoodsEntity> {

	void updateStatus(@Param("ids")Integer[] ids, @Param("status")int status);

	void updateRecommend(@Param("ids")Integer[] ids, @Param("recommend")int recommend);

	void updateTop(@Param("ids")Integer[] ids, @Param("top")int top);

	void reduceStock(@Param("id")Integer id, @Param("num")int num);
	
}
